package com.fly.system.service.impl;

import com.fly.system.mapper.DictValueMapper;
import com.fly.system.model.DictValueModel;
import com.fly.system.service.DictValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @CLASSNAME: DictValueServiceImpl
 * @author: Fly
 * 日期: 2020/6/21  13:04
 * 描述:
 **/
@Service("dictValue")
public class DictValueServiceImpl implements DictValueService {

    @Autowired
    private DictValueMapper dictValueMapper;

    @Override
    public List<DictValueModel> findDictByKey(String dictKey) {
        System.out.println(dictKey);
        DictValueModel model = new DictValueModel();
        model.setDictKey(dictKey);
        return dictValueMapper.select(model);
    }

    @Override
    public List<DictValueModel> finalAll() {
        return dictValueMapper.selectAll();
    }
}
